package com.hqd.ch03.v51.core.type.filter;

import com.hqd.ch03.v51.core.type.classreading.MetadataReader;
import com.hqd.ch03.v51.core.type.classreading.MetadataReaderFactory;

import java.io.IOException;

/**
 * 包扫描时过滤
 */
@FunctionalInterface
public interface TypeFilter {

    /**
     * 是否匹配
     *
     * @param metadataReader
     * @param metadataReaderFactory
     * @return
     * @throws IOException
     */
    boolean match(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory)
            throws IOException;

}